A method of enhancing distorted signal, a mobile communication device and a computer program product

ABSTRACT

A method of enhancing distorted signal having a speech and noise component, with a processing device having memory with stored training information T, comprising a step of removing noise in spectrum domain according to a noise and speech model to obtain a clear signal spectrum, wherein the training information T comprises dictionaries of compact spectra prototypes of speech and noise, speech gains and noise gains forming together composite states and it comprises probabilities of state history. Dictionaries of compact spectra prototypes comprise compact spectra prototypes of a first dimension P1 and of a second dimension P2 where second dimension P2 is higher or equal to the first dimension P1. A mobile communication device having a battery and processing device with connected memory, radio transceiver and audio input, according to the invention is adapted to receive audio signal from audio input and execute the method according to the invention on this signal and then transmit this signal with radio transceiver. A computer program product according to the invention when executed by mobile communicating device causes execution of the method according to the invention.

The invention concerns a method of enhancing distorted signal, having a speech and noise component, a mobile communication device adapted to carry on this method and respective computer program product.

Telecommunication devices, in particular telephones, smartphones or a hearing aid apparatuses are often used in noisy environment such as outdoors, transportation means interiors, offices or public areas, contaminated with various kind of noises including air-conditioning noise, wind noise, crying children, people conversations, engine sounds or music. These communication devices quite often does not only serve to transmit audio signals but also are equipped with speech recognition systems providing at least limited control over device with audio signal. Consequently noise present in incoming audio signals not only contributes to reduction of quality of transmission but also significantly diminishes functionality of the device. Therefore, noise reduction systems are significant issue.

Acoustics noises and interferences mentioned above are of time varying non-stationary character and hence, at a given time instant there is large uncertainty about noise frequency spectrum. Consequently applicability of conventional filtration and adaptive filtration techniques is severely limited. To compensate this uncertainty the a'priori knowledge about speech and noise signals is often used. This a priori knowledge is based on the past observation—forming so called training sets that is training set means time sequence of spectra.

A priori knowledge model is a probabilistic state model, that gives good results in time variable disturbances regime as disclosed by Deng, F., et al. (2015). “Sparse Hidden Markov Models for Speech Enhancement in Non-Stationary Noise Environments.” IEEE Transactions on Audio, Speech, and Language Processing 22(11): 1973-1986.

Using a priori knowledge model has limited applicability in mobile communication devices because of its large computational load, proportional to the signal block dimension as disclosed by Kuropatwinski, M. and W. B. Kleijn in “Estimation of the Short-Term Predictor Parameters of Speech Under Noisy Conditions.” IEEE Transactions on Audio, Speech, and Language Processing 14(5): 1645-1655., and by Deng, F., et al. (2015). “Sparse Hidden Markov Models for Speech Enhancement in Non-Stationary Noise Environments.” IEEE Transactions on Audio, Speech, and Language Processing 22(11): 1973-1986. This large computational load precludes its use in devices having limited memory and computational resources. Additionally computational load contributes to increased energy consumption and leads to very fast exhaustion of the battery in any mobile device.

It is an object of the invention to overcome these limitation.

The invention concerns a method of enhancing distorted signal having a speech and noise component, with a processing device having memory with stored training information, comprising a step of distorted signal frame r acquisition, a step of computing orthogonal transform over the frame r to obtain distorted signal magnitude spectrum d and distorted signal phase spectrum, a step of removing noise in spectrum domain according to a noise and speech model, and a step of synthetizing speech signal with inverse transformation from spectrum domain to time domain. According to the invention the training information (T) comprises dictionaries of compact spectra prototypes of speech (s_(i) ₁ ) and noise (n_(i) ₂ ), speech gains

(c_(S_(i₃)))

and noise gains

(c_(N_(i)_( ₄)))

forming together composite states i=(i₁, i₂, i₃, i₄). Training information also comprises probabilities of state history, so called transition probabilities. Dictionaries of compact spectra prototypes comprise compact spectra prototypes of a first dimension and of a second dimension where second dimension is higher or equal to the first dimension. The step of removing noise includes computation of a first compact spectrum d ₁ of the first dimension from magnitude spectrum d, computation of a second compact spectrum d ₂ of the second dimension from magnitude spectrum d, and subsequently preselection from training information a set of composite states matching the first compact spectrum d ₁. Such preselection executed on the compact spectra having small dimension is fast and reduces the number of states and hence computational effort in the following steps. The step of removing noise further includes step of evaluation of composite states likelihood and transition probabilities with a'priori knowledge model to assign probabilities to sequences of states, using the second compact spectra d ₂. Use the second compact spectrum with the larger second dimension allows more precise computation of probabilities and computing probabilities for discrete states enables factorization of computations. In further step a'posteriori probabilities of the preselected states are computed using forward and backward probabilities calculated on a base of the likelihoods of the preselected composite states and transition probabilities corresponding to at least three frames. A'posteriori probabilities together with training information are used to estimate a noise compact spectrum {circumflex over (d)}_(2n) and a speech compact spectrum {circumflex over (d)}_(2s). Finally magnitude of clear signal is recovered using speech magnitude spectrum, the estimated noise compact spectrum, the estimated speech compact spectrum and distorted signal magnitude spectrum d. Synthesizing clear speech is then just a matter of transforming phase spectrum and recovered speech magnitude spectrum to time domain with inverse or pseudo inverse transformation.

Advantageously the first dimension of the first compact spectrum is greater than 4 and lower than 10 and the second dimension of the second compact spectrum is greater than 7 but lower than 30. In case of system with typical frame lengths in audio systems, for values of the first dimension below 4 preselection is not precise enough while for values of the first dimension exceeding 10 the preselection requires a lot of computing operation and is very time and energy consuming. Values of the second dimension exceeding 7 enables precise calculation of probabilities. Second dimension above 30 costs a lot of computation but brings a little or no increase in quality.

Optimal selection of the first and second dimension may depend on the sampling frequency. For instance for 8 kHz optimal value of the first dimension is within a range {4, . . . , 7} and value of the second dimension is within a range of {8, . . . , 15}. Greater values of the second dimension, up to 30, may be beneficial for wideband audio signals sampled with frequency of 16 kHz.

Advantageously at least one of the estimation of the noise compact spectrum and estimation of the speech compact spectrum involves calculation of the expected value over the preselected composite states using a'posteriori probabilities. This approach instead of mere selection of the most probable state enables more precise modeling and lower distortions of the resulting clear speech signals.

Advantageously the training information (T) comprises noise covariance matrix (C_(N)) and speech covariance matrix (C_(S)) and the step of evaluation of composite states likelihood includes evaluations of log-likelihood of preselected states according to formula:

${\log \left\lbrack {p\left( \overset{\_}{d_{2}} \middle| \left\lbrack i_{j} \right\rbrack \right)} \right\rbrack} = {{{- \frac{P}{2}}{\log \left( {2\pi} \right)}} - {\frac{1}{2}{\log \left\lbrack {\det \left( {{c_{s_{i_{3}}}^{2}C_{S}} + {c_{n_{i_{4}}}^{2}C_{N}}} \right)} \right\rbrack}} + {{- \frac{1}{2}}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{n_{i_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)^{T}\left( {{c_{s_{i_{3}}}^{2}C_{S}} + {c_{n_{i_{4}}}^{2}C_{N}}} \right)^{- 1}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{n_{i_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)}}$

Advantageously log-likelihood of preselected states are executed with approximation:

${{\log \left\lbrack {p\left( \overset{\_}{d_{2}} \middle| \left\lbrack i_{j} \right\rbrack \right)} \right\rbrack} = {{{- \frac{P_{2}}{2}}{\log \left( {2\pi} \right)}} - {\frac{P_{2}}{2}{\log \left( v_{i_{3},i_{4}} \right)}} - {\frac{1}{2{v_{i}}_{\;_{3},i_{4}}}\left( {{\overset{\_}{d_{2}}}_{2}^{2} + {c_{{s_{i}}_{\;_{3}}}^{2}{{\overset{\_}{s_{2}}}_{i_{1}}}_{2}^{2}} + {c_{{N_{i}}_{\;_{4}}}^{2}{{\overset{\_}{n_{2}}}_{i_{2}}}_{2}^{2}} + {2c_{s_{i_{3}}}c_{{n_{i}}_{\;_{4}}}{\langle{{\overset{\_}{s}}_{2_{i_{1}}},{\overset{\_}{n_{2}}}_{i_{2}}}\rangle}} - {2c_{s_{i_{3}}}{\langle{{\overset{\_}{s}}_{2_{i_{1}}},{\overset{\_}{d}}_{2}}\rangle}} - {2c_{{s_{i}}_{\;_{4}}}{\langle{{\overset{\_}{n}}_{2_{i_{1}}},{\overset{\_}{d}}_{2}}\rangle}}} \right)}}},$

where v_(i) ₃ _(,i) ₄ represents maximal eigenvalue of matrix

c_(s_(i₃))²C_(S) + c_(n_(i)_( ₄))²C_(N).

Advantageously for evaluation of log-likelihood of different preselected states i following terms are calculated once and stored in cache memory:

${\overset{\_}{d}}_{2}^{2},{c_{s_{i_{3}}}^{2}{{\overset{\_}{s_{2}}}_{i_{1}}}_{2}^{2}},{c_{N_{i_{4}}}^{2}{{\overset{\_}{n_{2}}}_{i_{2}}}_{2}^{2}},{2c_{s_{i_{3}}}c_{{n_{i}}_{\;_{4}}}{\langle{{\overset{\_}{s}}_{2_{i_{1}},}{\overset{\_}{n_{2}}}_{i_{2}}}\rangle}},{\langle{{\overset{\_}{s}}_{2_{i_{1}}},{\overset{\_}{d}}_{2}}\rangle},{{\langle{{\overset{\_}{n}}_{2_{i_{2}}},{\overset{\_}{d}}_{2}}\rangle}.}$

More specifically the memory contains the sum of the above terms excluding the terms which involve the noisy speech second dimension compact spectrum.

-   Thanks to that operation the computational complexity is     proportional to the sum of speech and noise compact spectra     dictionaries cardinalities, not their product.

Advantageously the training information (T) includes smoothing coefficients and computing transitional probabilities in the step is executed with a use of smoothing coefficients (λ_(S) ^((l)), λ_(N) ^((l))). Smoothing coefficients allow calculation of the transitions probabilities taking into account in computations simultaneously probabilities of histories of states having different length.

The invention also concerns a mobile communication device having a battery and processing device with connected memory, radio transceiver and audio input, characterized in that it is adapted to receive audio signal from audio input and execute the method according to the invention on this signal and then transmit it with radio transceiver.

Advantageously the training information is stored in the memory.

Advantageously the mobile communication device has a separate memory for storing sum of the terms computed off-line:

${c_{s_{i_{3}}}^{2}{{\overset{\_}{s_{2}}}_{i_{1}}}_{2}^{2}} + {c_{N_{i_{4}}}^{2}{{\overset{\_}{n_{2}}}_{i_{2}}}_{2}^{2}} + {2c_{s_{i_{3}}}c_{{n_{i}}_{\;_{4}}}{{\langle{{\overset{\_}{s}}_{2_{i_{1}},}{\overset{\_}{n_{2}}}_{i_{2}}}\rangle}.}}$

Using small memory with fast access can speed up the calculations. Moreover a memory of size of few hundreds of bytes is used to store the terms computed for each frame that is terms involving the second dimension compact spectrum:

${\overset{\_}{d}}_{2}^{2},{\langle{{\overset{\_}{s}}_{2_{i_{1}}},{\overset{\_}{d}}_{2}}\rangle},{{\langle{{\overset{\_}{n}}_{2_{i_{2}}},{\overset{\_}{d}}_{2}}\rangle}.}$

Advantageously the mobile communication device is adapted to compute training information (T).

Invention concerns also a computer program product for a use with mobile communication device having a processing device and memory. Computer program product according to the invention comprises a set instructions that after loading to memory cause processing device execute the method according to the invention.

The computer program product advantageously comprises training information (T) including: dictionaries of compact spectra prototypes of speech (s_(i) ₁ ) and noise (n_(i) ₂ ), speech gains

(c_(S_(i₃)))

and noise gains

(c_(N_(i)_( ₄)))

forming together composite states i=(i₁, i₂, i₃, i₄), probabilities of state history.

Advantageously the training information (T) comprises noise covariance matrix (C_(N)) and speech covariance matrix (C_(S)).

Advantageously the training information comprises smoothing coefficients.

The invention is described below with reference to attached figures. FIG. 1 presents a flow chart of the method according to the invention, FIG. 2a , FIG. 2b , presents a flow chart of the method of computation compact spectra and inverse transformation respectively, FIG. 2c presents sample filterbank used for compact spectra computation, FIG. 3 presents a preselection block and FIG. 4 presents a block diagram of the mobile communication device according to the invention.

Flowchart of an sample embodiment of the method according to the present invention is presented in FIG. 1. It is assumed that prior to application of the method according to the invention a training step is executed for providing training information T. This training information T is stored in a memory of a device with which method according to the invention is executed. It can be downloaded, loaded together with computer program product according to the invention or even computed by the very same device.

In a method according to the invention distorted speech signal having a clear signal component and noise component is acquired in step 101 from a microphone or by receiving its digital representation from other device and subjected to preemphasis filtering. Then it is splited into frames of N samples in step 102. In an exemplary embodiment frame length N-256 was selected for a speech signal sampled with frequency of 8 kHz. Frames were spaced by 200 samples. Typical alternative sampling frequency is 16 kHz.

Over a frame r of distorted speech signal an orthogonal transformation is computed in step 103. For the sake of efficiency and easiness of implementation Fast Fourier Transform (FFT) is a reasonable choice. FFT over r results in a frequency domain representation of frame r. From this representation magnitude spectrum d is calculated in step 104 and phase spectrum in step 105.

Magnitude spectrum is represented as

$M = {\frac{N}{2} + 1}$

non-repeating samples, therefore the length of d is equal to M. A vector d of length M of magnitude spectrum is used to compute compact spectra. Using compact spectra enables significant decrease of the dimensionality of the preselection step 109 executed later. Further enhancement is obtained by calculating two compact spectra: in step 107 a first compact spectrum d ₁ of lower dimension P₁ and in step 108 a second compact spectrum d ₂ of higher dimension P₂. Such bifurcation makes it possible to execute time and resource consuming steps of the method faster using the first compact spectrum having lower dimension and execute the steps that are more susceptible to dimension using the second compact spectra having higher dimension.

To compute a compact spectrum of given dimension P subsequent filtering with P filters and contraction matrix C is applied as shown FIG. 2a . Filtration is applied by matrix multiplication of the magnitude spectrum d by a filtering matrix A having dimension P×M and then applying multiplication by matrix C having size P×P.

Matrix A is a filter bank of a choice. For example it may be a mel frequency filter bank as shown in FIG. 2c or a gammatone filterbank.

$A = {\begin{bmatrix} a_{0} \\ a_{1} \\ \ldots \\ a_{P­1} \end{bmatrix} \in {\mathbb{R}}^{P \times M}}$

where a_(i) ∈

^(1×M)

Contraction matrix C is selected so that (A⁺)^(T)×(A⁺)=C^(T)C, where A⁺ stands for the pseudoinverse of A.

A ⁺ =VE ⁺ U ^(T) ∈

^(M×P),

whereas: A=UEV^(T), is the Singular Value Decomposition, and E⁺ is obtained by replacing non-zero elements of the table E with their inverses.

The contraction matrix is computed using the Cholesky decomposition of matrix (A⁺)^(T)×(A⁺) preceded by the projection of this matrix onto the space of positive definite tables.

Compact spectra are calculated according to the formula:

d=CAd ∈

^(P×1).

Inverse compact spectra operation, as shown in FIG. 2b is calculated according to the formula:

{tilde over (d)}A ⁺ C ⁻¹ d.

The operation of computing compact spectrum is a lossy one, so reverse operation shown in FIG. 2b is in fact pseudoinverse.

The selection of values of the first d ₁ and the second d ₂ compact spectra dimensions, P₁ and P₂ respectively, depends on the available resources of the hardware on which the method is run. For a P₁ equal to 8 and P₂ equal to 15 gave reasonable results. Assuming that noise removal is executed on Xilinx Artix-7 XC7A35T-L1CSG324I FPGA the energy consumption thanks to the invention is at least 10 times lower comparing to the state of the art methods with the same output speech quality. Other experiments shown that significant improvements with respect to the states of the art methods are observed for P₁∈(1,8) in some application particularly good for P₁∈(4,7) and P₂∈(2,30), for most applications range P₂ greater than 7 would be required. First compact spectra of dimension lower than 4 for typical frame length would definitely carry not enough information for the next method steps to be successfully executed while dimension higher than 8 would contribute very highly (exponentially) to the complexity of the preselection step 109. Only very significant improvement of the state of the art devices would make the first dimension over 8 useful. The dimension of the second spectrum should be not lower than 8 for frames of typlical length for audio systems i.e. 20-30 ms. It can be as low as 2 for frame of shorter time duration down to 2 sample at 16 kHz sampling rate. Short frames are less convenient and are applied only in very particular applications, in particular in hearing aids.

Let as define a composite states as a tensor of order 2 having one dimension corresponding to the time (precisely frame numbers) and the second to a structure comprising fields

-   i₁—indication of the speech compact spectra prototype, -   i₂—indication of the noise compact spectra prototype, -   i₃—speech gain and -   i₄—noise gain.

Conception of composite state originate from the a'priori knowledge model. It is assumed that for given frame r compact spectrum d is approximated by a composite state with static gains c_(s) _(i3) and

c_(n_(i)_( ₄)).

The same gains applies to the compact spectrum d ₁ of the first dimension P₁ and to the compact spectrum d ₂ of the second dimension P₂:

${\overset{\_}{d_{1}} = {{c_{s_{i_{3}}} \cdot {\overset{\_}{s}}_{1_{i_{1}}}} + {c_{{n_{i}}_{\;_{4}}} \cdot {\overset{\_}{n}}_{1_{i_{2}}}}}},{\overset{\_}{d_{2}} = {{c_{s_{i_{3}}} \cdot {\overset{\_}{s}}_{2_{i_{1}}}} + {c_{{n_{i}}_{\;_{4}}} \cdot {{\overset{\_}{n}}_{2_{i_{2}}}.}}}}$

${\overset{\_}{s}}_{1_{i_{1}}},{\overset{\_}{n}}_{1_{i_{2}}}$

stand for prototypes of compact spectra of the first dimension of the speech and noise respectively and

${\overset{\_}{s}}_{2_{i_{1}}},{\overset{\_}{n}}_{2_{i_{2}}}$

stand for prototypes of compact spectra of the first dimension of the speech and noise respectively.

Every compact spectra prototype of the first dimension has a corresponding prototype of second dimension. Hence a state indicators i₁, i₂, i₃, i₄, apply to both prototypes of the first dimension and of the second dimension.

Consequently, it is possible to provide training information T obtained in training step 100 preceding execution of the method according to the invention prototypes of compact spectra of the first and the second dimension corresponding to each other. Accordingly, training step 100 is assumed to have provided following information:

-   {s_(i1)}_(i∈(N) _(s) ₎, ∈     ^(P)—dictionary of speech compact spectra prototypes of the first     dimension and of the second dimension, -   {n_(i2)}_(i∈(N) _(n) ₎, n_(i) ∈     ^(P)—dictionary of noise compact spectra prototypes of the first     dimension and of the second dimension, -   {c_(s) _(i3) }_(i∈(N) _(cs) ), c_(s) _(i3) ∈     ₊—dictionary of speech gains, -   {c_(n) _(i4) }_(i∈(N) _(cn) ₎, c_(n) _(i4) ∈     ₊—dictionary of noise gains.

The training step 100 further provides additional information used in further step of likelihood evaluation:

-   C_(s) ∈     ^(P×P)—speech covariance matrix, -   C_(N) ∈     ^(P×P)—noise covariance matrix, -   {P_(S) ^((l))}_(l∈(L))—probabilities of the speech state history of     length 1, where L-1 is the longest history considered, -   {λ_(S) ^((l))}_(l∈(L))—smoothing coefficients for probabilities of     speech state history of length 1, -   {P_(N) ^((l))}_(l∈(L))—probabilities of the noise state history of     length 1, where L-1 is the longest history considered, -   {λ_(N) ^((L))}_(l∈(L))—smoothing coefficients for probabilities of     noise state history of length 1, altogether referred to as training     information T.     Above, the symbol (N) is used to define range {0, . . . , N-1}.

State history according to the invention refers to a high order state history wherein the length of the conditioning state history being at least two in terms of frames. The use of higher than 2, up to 20, state histories allows for more accurate estimation of the speech signal frame energies. Adding smoothing allows for a proper back-off in case the observations violate strongly the energy contours typical for the training set.

Composite states and probabilities of state history are contained in the training information T. Number of available states depends on the cardinality of the dictionaries. The time required for selection the best state depends exponentially on the number of prototypes and hence for exhaustive search is very large. Preselection 109 consists in selecting from the whole set of available most promising composite states that is a subset of composite states the math given first compact spectra d₁ . The complexity of preselection depends on the value of P₁ of the dimension of the first compact spectrum d₁ and it is a growing dependence.

Let us denote cardinality of speech compact spectra dictionary as N_(S), cardinality of noise compact spectra dictionary as N_(N), cardinality of speech gains dictionary N_(C) _(s) and cardinality of noise gains dictionary as N_(C) _(n) . When the first compact spectra d₁ dimension P₁ is selected in a range from 4 to 7 then it is possible to preselect a subset of most promising composite states using a KD-tree algorithm employing the histogram and dynamic pruning in real time. In traditional systems this measure is not possible due to high dimension of the raw magnitude spectrum. For modern hardware P1=10 is a boundary value enable KD-tree preselection. Above the dimension of eight the “curse of dimensionality” causes the KD-tree losing the fast search property. For the low dimension of the first compact spectrum the KD-tree has logarithmic complexity in the number of searched points. Thus the exhaustive search proportional to the product of N_(S)·N_(N)·I_(C) _(s) ·I_(C) _(n) corresponding to total number of speech prototypes, total number of noise prototypes, total number of speech gains and total number of noise gains respectively is reduced to being proportional to log₂(N_(S)·N_(N)·I_(C) _(s) ·I_(C) _(n) ) computations. Thus it is possible to use the static, quantized gains instead of the adaptive gains used in the state-of-the-art systems and still operate in real time, which is a significant improvement over the state of the art models in which gains are determined in dividing the whole speech frames by superposition of noise and signals prototypes known from Loizou, Philipos C. Speech enhancement: theory and practice. CRC press, 2013. p. 190.

Preselection applied in step 109 is based on the algorithm disclosed by Friedman, Jerome H., Jon Louis Bentley, and Raphael Ari Finkel “An algorithm for finding best matches in logarithmic expected time” ACM Transactions on Mathematical Software (TOMS) 3.3 (1977): 209-226. It receives the first compact spectrum d₁ a histogram trimming coefficient Q and dynamic limitation coefficient D, as shown in FIG. 3.

The Q parameter fed to KD-tree block shown in FIG. 3, corresponds to the so called histogram pruning coefficient known in the dynamic programming terminology. It describes the condition on the longest acceptable length of the state's list at the output of the preselection step. The D parameter in turn corresponds to the so called dynamic pruning coefficient known in the dynamic programming terminology. For example, if we accept states with likelihood at most Zx less probable than the best states, the D coefficient can be found using following program Solve[(1−Erf[D/Sqrt[2]])==1/Z, D].

In the KD-tree the operation in the leaf nodes during search is modified. In the state-of-the-art implementation of the KD-tree we usually have to do with either m-best search or range search. M-best search finds m candidates, which are closest to the query. The range search in turn return all candidates within the radius of the query point. In our system we combine the Q-best search—as described in above paragraph regarding definition of Q—and a modified range search. The range search is modified in that the range is updated after traversing each leaf node to be the distance of the query from the current best candidate multiplied by the D coefficient—as described in above paragraph regarding definition of D.

In Preselection step 109 for given first compact spectrum d ₁ a minimum number of Q′^((d) ¹ ⁾ of preselected states is returned. Those states simultaneously comply to the first condition and second condition. Denoting j-th composite state i_(j)=[i₁ ^((j)), i₂ ^((j)), i₃ ^((j)), i₄ ^((j))] of (N_(S))×(N_(N))×(N_(C) _(S) )×(N_(C) _(N) ) states we can formulate the set of first and second conditions as follows:

$\quad\left\{ \begin{matrix} \begin{matrix} {{{{{\overset{\_}{d_{1}} - {C_{S_{i_{3}^{(0)}}} \cdot s_{i_{1}^{(0)}}} - {C_{N_{i_{3}^{(0)}}} \cdot n_{i_{3}^{(0)}}}}} \times D} \geq}\mspace{115mu}} \\ {{{\overset{\_}{d_{1}} - {C_{S_{i_{3}^{({Q^{\prime}{({\overset{\_}{d}}_{1})}})}}} \cdot s_{i_{1}^{({Q^{\prime}{({\overset{\_}{d}}_{1})}})}}} - C_{N_{i_{3}^{({Q^{\prime}{({\overset{\_}{d}}_{1})}})}}}}{\cdot n_{i_{3}^{({Q^{\prime}{({\overset{\_}{d}}_{1})}})}}}}} \end{matrix} \\ {Q^{\prime {({\overset{\_}{d}}_{1})}} \leq {Q - 1}} \end{matrix} \right.$

where composite states are sorted according to the increasing distance from the query point: noisy speech compact spectrum d ₁.

A set of preselected in step 109 states [i_(j)]_(j∈0, . . . , Q′(d) ₁ ₎ is processed in step 110 of state transition probabilities and likelihood evaluation. Likelihood is a probability of observation of a particular composite state. Likelihoods are in the state of the art also often referred to as “emission probabilities”.

Unfortunately the value of P₁ equal between 1 and 10 is not high enough to enable precise evaluation of the likelihood for frames of typical duration e.g. ˜20 ms. Precise evaluation of likelihood is required to calculate a'posteriori probabilities and finally a compact spectra prototypes of speech and noise required to extract clear speech. Therefore, composite states preselected in step 109 are in step 110 used with compact spectra prototypes of second dimension P₂.

Let as consider a vector of states [i_(t)] corresponding to subsequent L frames {t−L+1,t−L+1, . . . , t} it is further referred to as composite state history. Composite states belong to the set of K=N_(S)·N_(N)·N_(C) _(S) ·N_(C) _(N) of possible distinct states available in dictionaries being a part of training information T. State transition probability is a conditional probability of the current state history conditioned by the previous state history: p([i_(t)]|[i_(t−1)]). Likelihood is a conditional probability of given compact spectra d₂ of second dimension P₂ for the current frame r, conditioned on the composite state i, formally: p(d ₂|[i_(j)]). Path is defined as T consecutive speech, noise or composite states corresponding to T consecutive frames. Path probability is a product of all state transitions and likelihoods on the path. To avoid numerical underflows or overflows and for the sake of convenience and effectiveness the product is implemented in logarithmic scale so that it could be replaced with mere addition. Logarithm of the likelihood is referred to as log-likelihood. A history of states with corresponding path probability is considered a hypothesis. Therefore calculation of log-likelihood may be considered a processing of hypothesis list. This list is advantageously expanded under following conditions. To facilitate precise definition of these conditions as well as of the following algorithm steps some notation is introduced:

i_(t) ^((l)) =[i _(t)]_(t∈{t−l+1, . . . , t})

where l denotes the length of the observed state history.

The mentioned condition is:

${p\left( {i_{1t}i_{1t}^{(h)}} \right)} = \left\{ {{\begin{matrix} {p\left( i_{1t} \right)} & {{{if}\mspace{14mu} i_{3t}} \neq i_{{3t} - 1}} \\ {p\left( {i_{1t}i_{1t}^{(h)}} \right)} & {otherwise} \end{matrix}{p\left( {i_{2t}i_{2t}^{(h)}} \right)}} = \left\{ \begin{matrix} {p\left( i_{2t} \right)} & {{{if}\mspace{14mu} i_{4t}} \neq i_{{4t} - 1}} \\ {p\left( {i_{2t}i_{2t}^{(h)}} \right)} & {otherwise} \end{matrix} \right.} \right.$

where h is the maximal number of past states taken into consideration.

The computation of transition probabilities p([i_(t)]|[i_(t−1)]) is executed in recursive fashion. Speech states and noise states are treated separately. In this respect speech state is represented by a pair i_(S)=(i₁, i₃) and noise state is represented by a pair i_(N)=(i₂, i₄). Accordingly:

p(i _(S) _(t) ⁽¹⁾ |i _(S) _(t) ⁽⁰⁾)=p ⁽⁰⁾(i _(S) _(t) ⁽¹⁾),

p(i _(S) _(t) ⁽¹⁾ |i _(S) _(t−1) ^((l)))=P ^((l))(i _(S) _(t) ^((l+1)))+λ_(S) ^((l))(i _(S) _(t−1) ^((l)))p(i _(S) _(t) ⁽¹⁾ |i _(S) _(t−1) ^((l−1))),

and

p(i _(N) _(t) ⁽¹⁾ |i _(N) _(t) ⁽⁰⁾)=P ⁽⁰⁾(i _(N) _(t) ⁽¹⁾),

p(i _(N) _(t) ⁽¹⁾ |i _(N) _(t−1) ^((l)))=p ^((l))(i _(N) _(t) ^((l+1)))+λ_(N) ^((l)) (i _(N) _(t−1) ^((l)))p(i _(N) _(t) ⁽¹⁾ |i _(N) _(t−1) ^((l−1))),

The speech and noise transition probabilities are computed according to the above formula and then multiplied together:

p(i _(t) ⁽¹⁾ |i _(t−1) ^((l)))=p(i _(S) _(t) ⁽¹⁾ |i _(S) _(t−1) ^((l)))·p(i _(N) _(t) ⁽¹⁾ |i _(N) _(t−1) ^((l)) 0

In the description signal type label “S”, “N” are often omitted for the sake of simplicity.

Smoothing coefficients λ⁽¹⁾ allow using probabilities of state histories of different length available in training information T. It is possible to implement the method according to the invention without them but precision of probability evaluation would be lower.

The log-likelihood of noisy signal compact spectrum is computed as a convolution of likelihood of speech and noise compact spectra. Each speech or noise likelihood is a multivariate Gaussian distribution, which depends on Gaussian parameters:

-   -   mean vector times gain coefficient,

c_(s_(i₃))s_(i₁)

for speech and

c_(n_(i₄))n_(i₂)

for noise;

-   -   covariance matrix times square of gain coefficient—

c_(s_(i₃))²

C_(S) for speech and

c_(n_(i₄))²C_(N)

for the noise.

The formula for the noisy compact spectrum likelihood is:

${\log \left\lbrack {p\left( {\overset{\_}{d_{2}}\left\lbrack i_{j} \right\rbrack} \right)} \right\rbrack} = {{{- \frac{P}{2}}{\log \left( {2\pi} \right)}} - {\frac{1}{2}{\log \left\lbrack {\det \left( {{c_{s_{i_{3}}}^{2}C_{S}} + {c_{n_{i_{4}}}^{2}C_{N}}} \right)} \right\rbrack}} + {{- \frac{1}{2}}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{n_{i_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)^{T}\left( {{c_{s}^{2}C_{S}} + {c_{n_{i_{4}}}^{2}C_{N}}} \right)^{- 1}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{n_{i_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)}}$

which is further approximated by

${\log \left\lbrack {p\left( {\overset{\_}{d_{2}}\left\lbrack i_{j} \right\rbrack} \right)} \right\rbrack} = {{{- \frac{P}{2}}{\log \left( {2\pi} \right)}} - {\frac{P}{2}{\log \left( v_{i_{3},j_{4}} \right)}} + {{- \frac{1}{2v_{i_{3},j_{4}}}}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{{n_{i}}_{\;_{4}}}{\overset{\_}{n}}_{i_{2}}}} \right)^{T}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{n_{i_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)}}$

where v_(i) _(3,) _(i) ₄ is defined as the maximal eigenvalue of the matrix:

c_(s_(i₃))²C_(S) + c_(n_(i₄))²C_(N).

As the term

$\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{{n_{i}}_{\;_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)^{T}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{{n_{i}}_{\;_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)$

can be expanded to:

${\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{{n_{i}}_{\;_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)^{T}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{{n_{i}}_{\;_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)} = {{+ {\overset{\_}{d_{2}}}_{2}^{2}} + {c_{s_{i_{3}}}^{2}{{\overset{\_}{s}}_{2_{i_{1}}}}_{2}^{2}} + {c_{{n_{i}}_{\;_{4}}}^{2}{{{\overset{\_}{n}}_{2_{i_{2}}}}_{2}^{2}++}2c_{s_{i_{3}}}c_{{n_{i}}_{\;_{4}}}{\langle{{\overset{\_}{s}}_{2_{i_{1}},}{\overset{\_}{n}}_{2_{i_{2}}}}\rangle}} - {2c_{S_{i_{3}}}{\langle{{\overset{\_}{s}}_{2_{i_{1}}},\overset{\_}{d_{2}}}\rangle}} - {2c_{{n_{i}}_{\;_{4}}}{\langle{{\overset{\_}{n}}_{2_{i_{2}}},\overset{\_}{d_{2}}}\rangle}}}$

where

x, y

operation represents a dot product, also known as the scalar product.

That contrasts with the state of the art approach of computing the likelihood (cf. Kuropatwinski, M. and W. B. Kleijn in “Estimation of the Short-Term Predictor Parameters of Speech Under Noisy Conditions.” IEEE Transactions on Audio, Speech, and Language Processing 14 (5): 1645-1655, eq. 7) in which likelihood computation requires implementing division operation of the frame spectra. The improvement is very significant as according to the present invention number of operations is reduced and so is the size of the vectors as dimension P₂ is lower than frame length. Moreover, it can be immediately seen that the dot products can be cached and thus the total cost of computing the distances for all states is bounded by the sum of numbers of speech and noise compact spectra prototypes. Storing in static memory the sum of the below terms:

-   -   every product of the compact spectra prototype

${\langle{{\overset{\_}{s}}_{2_{i_{1}}},{\overset{\_}{n}}_{2_{i_{2}}}}\rangle},$

-   -   every square norm of the compact spectra prototype

${{\overset{\_}{s}}_{2_{i_{1}}}}_{2}^{2},$

-   -   every square norm of the compact spectra prototype

${{\overset{\_}{n}}_{2_{i_{2}}}}_{2}^{2},$

is memory consuming, but allows saving a lot of energy on multiplication operations. Moreover, the dot products

$\langle{{\overset{\_}{s}}_{2_{i_{1}}},\overset{\_}{d_{2}}}\rangle$

$\langle{{\overset{\_}{n}}_{2_{i_{2}}},\overset{\_}{d_{2}}}\rangle$

and the norm ∥d₂ ∥₂ ² are calculated only once per frame and then stored in the cache too. Application of the preselection step to the available composite states allows use a very small and very fast memory for this operation as the number dot products for the preselected states is significantly lower than it would be for the whole set of available states.

Then in step 111 a forward-backward algorithm known form Jurafsky, D. and J. H. Martin (2014) “Speech and language processing” pp. 181-190 is used to calculate a'posteriori probabilities. It involves a delay by L_(A) frames. Value of look ahead L_(A) is selected so that the delay related to buffering a number of frames was unobserved in human communication but provides important information about subsequent states that enable more precise estimation of the state probability. When look ahead is equal to 1 computations are based on three frames: current, all previous and next giving the information required to obtain transition probabilities.

The forward probabilities are defined by the formula:

α([i _(j,t)])=p( d _(2t=1) , . . . , d _(2t=i) , [i _(j,{dot over (t)}) ]|T),

where {dot over (t)}=T−L_(A), and T is the training information. The backward probabilities are in turn defined by the formula:

β([i _(j,{dot over (t)})])=p( d _(2t={dot over (t)}+1) , . . . , d _(2t=T)|[i _(j,{dot over (t)}) ], T).

It is important to note that forward and backward probabilities can be computed in recursive fashion, see equations 6.15-6.17 and 6.28-6.30 in Jurafsky, D. and J. H. Martin (2014) “Speech and language processing” pp. 181-190. Based on the just introduced forward-backward formulas the a'posteriori probability can be expressed as:

${p\left( {\left. \left\lbrack i_{j,\overset{.}{t}} \right\rbrack \middle| {\overset{\_}{d}}_{{2t} = 1} \right.,\ldots \mspace{20mu},{\overset{\_}{d}}_{{2t} = \overset{.}{t}},\ldots \mspace{14mu},{\overset{\_}{d}}_{{2t} = T}} \right)} = {\frac{{\alpha \left( \left\lbrack i_{j,\overset{.}{t}} \right\rbrack \right)}{\beta \left( \left\lbrack i_{j,\overset{.}{t}} \right\rbrack \right)}}{\Sigma_{j}{\alpha \left( \left\lbrack i_{j,\overset{.}{t}} \right\rbrack \right)}{\beta \left( \left\lbrack i_{j,\overset{.}{t}} \right\rbrack \right)}}.}$

The a'posteriori probabilities are used in step 112 to estimate a compact spectrum of noise according to the formula:

{circumflex over (d)} _(2n)=Σ_(j) E[n ₂ |n ₂ |d _(2t=T−L) _(A) [i _(j,T−L) _(A) ]]p([i _(j,T−L) _(A) ]|d _(2t=1) , . . . , d _(2t=T)),

and in 113 for speech:

{circumflex over (d)} _(2s)=Σ_(j) E[s ₂ |d _(2t=T−L) _(A) [i _(j,T−L) _(A) ]]p([i_(j,T−L) _(A) ]|d _(2t=1) , . . . , d _(2t=T)).

where the expectation operation are defined by the following formulas:

E[s ₂ |d _(2t=T−L) _(A) [i _(j,T−l) _(A) ]]=(c _(si) ₃ ⁻² C _(S) ⁻¹ +c _(ni) ₄ ⁻² C _(N) ⁻¹)⁻¹ c _(ni) ₄ ⁻² C _(N) ⁻¹( d _(2t={dot over (t)}) −c _(si) ₃ s _(2i) ₁ −c _(ni) ₄ n _(2i) ₂ )+c _(si) ₃ s _(2i) ₁ ,

E[n ₂ |d _(2t=T−l) _(A) [i _(j,T−L) _(A) ]]=(c _(si) ₃ ⁻² C _(S) ⁻¹ +c _(ni) ₄ ⁻² C _(N) ⁻¹)⁻¹ c _(si) ₃ ⁻² C _(S) ⁻¹( d _(2t={dot over (t)}) −c _(si) ₃ s _(2i) ₁ −c _(ni) ₄ n _(2i) ₂ )+c _(ni) ₄ n _(2i) ₂ .

These speech compact spectrum of second dimension {circumflex over (d)}_(2s) and noise compact spectrum of second dimension {circumflex over (d)}_(2n) respectively are subjected to inverse compact spectrum operation in FIG. 2b in steps 114 and 115 respectively.

The estimation step 116 in FIG. 1. is performed according to the eq. 7.144 from Loizou, Philipos C. Speech enhancement: theory and practice. CRC press, 2013. The cited formula is following:

${{\overset{\hat{}}{d}}_{sk} = {\frac{\sqrt{g_{k}}}{\sqrt{\pi}}\frac{\exp \left( {g_{k}/2} \right)}{I_{0}\left( {g_{k}/2} \right)}d_{k}}},$

where {circumflex over (d)}_(sk) is estimated k-th line of the clean speech magnitude spectrum, d_(k) is k-th line of the noisy speech magnitude spectrum, I₀ is the modified Bessel function of order zero and g_(k) is defined in the cited reference on the page 245. The formula for g_(k) involves the inverses of the compact spectra computed in steps 115 and 116 according to FIG. 2b .

In the synthesis step 117 the clean speech samples are computed according to the formula:

${{\overset{\hat{}}{s}}_{p} = {\Sigma_{k = 0}^{N - 1}{\overset{\hat{}}{d}}_{sk}{\exp \left( {j\; \theta_{k}} \right)}{\exp \left( {j\frac{2\pi}{N}p\; k} \right)}}},$

where j=√{square root over (−1)} is the imaginary unit and θ_(k) is the k-th line of the noisy speech angular spectrum. The estimated speech samples ŝ_(p) are subject to appropriate windowing before the overlap-add procedure. The final step of processing is the deemphasis operation with the filter with the transfer function given by:

${H(z)} = {\frac{1}{1 - {{0.9}5z^{- 1}}}.}$

Finally the clear samples are outputted in step 118. Speech signal after being enhanced is ready for transmission in conventional manner.

Method according to the present invention can be embodied in mobile communicating device in which it not only contributes to transmitting clearer speech but also to lower bandwidth and energy consumption. It is due to the fact that clear speech is easier to compress than noise-like interferences and hence the same compression methods give better compression rate when fed with clear speech obtained with a method according to the invention. That results in lower bandwidth requirement and lower energy consumption.

Exemplary block diagram of a mobile communication device according to the invention is shown in FIG. 4. The device has arithmetic unit 401 connected via bidirectional connection with memory 402 and I/O module 406. I/O module 406 is in direct bidirectional connection with memory 402 and transceiver 404 and is adapted to receive input audio signal from microphone 407 and to feed audio signal to the speaker 405. Arithmetic unit 401, I/O module 406, transceiver 404 and memory 402 are powered from battery 403 as indicated with double arrows. I/O module 406 and microphone 407 form together an audio input. Alternatively other audio inputs known in the art can be used including line-in from other systems.

Signal from the microphone 407 is delivered to the arithmetic unit via I/O module 406. Arithmetic unit executes a set of instruction stored within a memory 402 causing it to execute a method according to the invention. Then clear speech signal is processed with state of the art communicating techniques, including compression and delivered via I/O module 406 to the transceiver 404 for transmission. Audio signal received from the transceiver 404 is delivered to speaker via I/O module 406.

Optionally signal received from the transceiver 404 can be also subjected to the method according to the invention and enhanced by clearing of noise. Nevertheless, clearing from noise is advantageously done on the transmitting side as clear speech signal is better conditioned for compression. Therefore, if the signal is cleared prior to transmission it requires less bandwidth for the same quality or can have better quality within the same bandwidth. Energy consumption required for compression of the clear signal is also lowered.

Optionally additional small and very fast static memory 408 is used for the storage of the products

${\overset{\_}{d}}_{2}^{2},{\langle{{\overset{\_}{s}}_{2_{i_{1}},}{\overset{\_}{d}}_{2}}\rangle},{{\langle{{\overset{\_}{n}}_{2_{i_{1}},}{\overset{\_}{d}}_{2}}\rangle}.}$

If compact spectra dot products are represented by 8 bits, and the number of speech and noise states are 512 and 256 respectively, the amount of memory required for caching per frame is less than 1 kB. If the size of memory of just a few or few tens of kB the access can be extremal fast. Caching in ultra small and ultra fast memory is possible thanks to combining the execution of the likelihood evaluation step (110) on the compact spectra of dimension P₂ lower than the frame size with preselection operation that limits number of states for which above products need to be stored.

Memory 402 includes training information T it may be delivered together with computer program product comprising the instruction set causing arithmetic unit to execute method according to the invention, downloaded from the external server or even the mobile communication device can be adapted to process training sequences and calculate training information.

Experiments performed by the inventor show that the invention allows very significant reduction−at least 10 up to 1000 times−of energy consumption comparing to the state of the art methods and devices, with the same enhanced speech quality as determined using various quality measures such as PESQ, SNR, SEGSNR, and measurements according to the ITU P.835 standard.

The training operation is one-time effort, nevertheless resulting training information is required to run the method according the invention and is needed in the memory of the device according to the invention and needs to be a part or complementary element of the computer program product according to the invention.

The invention may be implemented in a computer program for running on a computer system such as mobile device. The computer program may for instance include one or more of: a subroutine, a function, a procedure, an object method, an object implementation, an executable application, an applet, a servlet, a source code, an object code, a shared library/dynamic load library and/or other sequence of instructions designed for execution on a computer system. The computer program may be distributed on a data carrier, such as optical disc, a hard disk, or flash memory, stored with data loadable in a memory of a computer system, the data representing the computer program. The data carrier may thus be a tangible data carrier. The data carrier may be a data connection, such as a telephone cable a network cable or a wireless connection.

Training is performed separately for the speech and noise signal based on training sets. For example it is possible to use 30 min database of speech and similarly for noise. The noise database contains typical noises coming from several environments covering the large part of possible use cases.

The databases were processed by preemphasis filter before use. The preemphasis filter has transfer function given by the formula:

H(z)=1−0.95z ⁻¹.

After preemphasis all speech and noise chunks where power normalized. The power normalization has been based on the ITU P.56 active speech level algorithm. Each chunk has been amplitude scaled to be of equal active level.

Thereafter the Baum-Welch reestimation has been performed according to the following algorithm. For the sake of simplicity we assume the training sequence is continuous and consist of U frames: TS={v_(t)}_(t∈(U)). The Baum-Welch algorithm has been initialized using K-Means algorithm for spectral prototypes and histogram estimation of transition probabilities.

The Baum-Welch algorithm runs in two steps:

-   Step I: Computation of a'posteriori probabilities

p(s_(t), s_(t−1)|TS, T^((k)),)

where:

s _({dot over (t)}) =[i _(t)]_(t∈{{dot over (t)}−L+1, . . . , {dot over (t)}})

TS is the training set of utterances and T^((k)) is the training information at k-th iteration of the Baum-Welch algorithm.

-   Step II: Computation of transition probabilities:

${{p\left( {s_{t} = {{ms_{t - 1}} = n}} \right)} = \frac{\Sigma_{t}{p\left( {{s_{t} = m},{s_{t - 1} = {n{TS}}},T^{(k)}} \right)}}{\Sigma_{m}\Sigma_{t}{p\left( {{s_{t} = m},{s_{t - 1} = \left. n \middle| {TS} \right.},T^{(k)}} \right)}}},$

-   and emission probabilities parameters: -   means (prototypes)and covariances respectively:

${m\left( {i_{t} = m} \right)} = \frac{\Sigma_{t}v_{t}{p\left( {{i_{t} = \left. m \middle| {TS} \right.},T^{(k)}} \right)}}{\Sigma_{t}{p\left( {{i_{t} = \left. m \middle| {TS} \right.},T^{(k)}} \right)}}$ $C = {\frac{\Sigma_{t}{\Sigma_{n}\left( {v_{t} - {m\left( {i_{t} = n} \right)}} \right)}\left( {v_{t} - {m\left( {i_{t} - n} \right)}} \right)^{T}{p\left( {{i_{t} = \left. n \middle| {TS} \right.},T^{(k)}} \right)}}{\Sigma_{t}\Sigma_{n}{p\left( {{i_{t} = \left. n \middle| {TS} \right.},T^{(k)}} \right)}}.}$

-   Step I and step II are iterated until convergence.

For computation of the back-off model (consisting of parameter sets {P_(S) ^((l))}_(l∈(L)′){λ_(S) ^((l))}_(l∈(L)′){P_(N) ^((l))}_(l∈(L)′){λ_(N) ^((l))}_(l∈(L))) of transition probabilities the final, after Baum-Welch algorithm, p(s_(t)=m, s_(t−1)=n|TS, θ′) are taken with appropriate discounting. Before discounting the former probabilities are multiplied by the total number of training frames to get counts instead of fractions. The back-off model is computed according to the formulas disclosed by Wikipedia contributors. In “Kneser-Ney smoothing.” Wikipedia, The Free Encyclopedia. Wikipedia, The Free Encyclopedia, 25 Jun. 2017. Web. 26 Jul. 2017.

It should be stressed that once teaching of the present invention are disclosed to the person skilled in the art this person would be able to routinely adapt multiple state of the art training methods and sequences to obtain the training information T required to run a method according to the invention or to implement it in a device according to the invention as well as on the remote server with which device according to the invention communicates.

The method according to the invention can be implement in of the shelf mobile communication devices. Device according to the invention may therefore just run a computer program product according to the invention or have custom hardware adapted for even faster execution of the method according to the invention.

Those skilled in the art given the teachings of the above description are able to routinely propose multiple hardware and software solutions for device according to the invention and for computer implemented execution of the method according to the invention as well as methods of obtaining training information.

It is stressed that the above description is a mere illustration of the present invention and those skilled in the art will be able to propose many alternative embodiments covered by the scope of protection as defined in attached claims.

In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. Use of the verb “comprise” mean that there are no elements or steps other than those stated in a claim. The article “a” or “an” preceding an element does not exclude the presence of a plurality of such elements.

List of symbols and annotations most frequently used:

-   ∥x∥₂−2—norm of the vector x -   x, y     —scalar product also known as dot-product of vectors x and y -   (N)={0, . . . , N-1}—range definition -   t—frame number -   T—number of thus far observed frames -   r—frame of the noisy signal -   d—magnitude spectrum -   d—compact spectrum -   d _(2t=*)—compact spectrum of second dimension at frame number * -   {circumflex over (d)}_(2s)—estimated compact spectrum of second     dimension for speech -   {circumflex over (d)}_(2n)—estimated compact spectrum of second     dimension for noise -   {tilde over (d)}—approximated magnitude spectrum -   {tilde over (d)}_(s)—approximate speech magnitude spectrum -   {tilde over (d)}_(n)—approximate noise magnitude spectrum -   d₁ , d₂ —compact spectra of the first and second dimension,     respectively -   P, P₁, P₂—dimension, first dimension and second dimension,     respectively -   s, n—compact spectra of signal and noise respectively (abstracting     dimension) -   s₁ , n₁ —compact spectra of the first dimension of the signal and     noise respectively -   s₂ , n₂ —compact spectra of the second dimension of the signal and     noise respectively -   i=(i₁, i₂, i₃, i₄)—composite state -   i₁—speech prototype index -   i₂—noise prototype index -   i₃—speech gain index -   i₄—noise gain index -   i_(s)=i₁, i₃)—speech state -   i_(N)=(i₂, i₄)—noise state -   i=[i_(ujt)]—third order state tensor, u—the index for the composite     state, j—index of state on the state list in the given frame,     t—frame number -   [i_(u)]=[i_(u**)] -   [i_(j)]=[i_(*j*)] -   [i_(t)]=[i_(**t)] -   [i_(t−1)]=b([i_(t)])—the (t−1)-th frame state tensor is back-pointed     by the t-th frame state tensor, the dependence is time recursive -   i_(t) ^((l))—state history of length l

s_(1_(i)₁), n_(1_(i₂))

prototypes of compact spectra of the first dimension of the speech and noise respectively

s_(2_(i₁)), n_(2_(i₂))

prototypes of compact spectra of the first dimension of the speech and noise respectively

-   N—frame size -   M=N/2+1 -   L—maximal length of history of observation -   L_(A)—look ahead -   T—training information -   {s_(i)}_(i∈(N) _(S) ₎, s_(i) ∈     ^(P)—dictionary of speech compact spectra prototypes of the first     dimension and of the second dimension, -   {n_(i)}_(i∈(N) _(N) ₎, n_(i) ∈     ^(P)—dictionary of noise compact spectra prototypes of the first     dimension and of the second dimension, -   {c_(s) _(i) }_(i∈(N) _(cs) ₎, c_(s) _(i) ∈     ₊—dictionary of speech gains, -   {c_(n) _(i) }_(i∈(N) _(cn) ₎, c_(n) _(i) ∈     ₊—dictionary of noise gains. -   C_(S) ∈     ^(P×P)—speech covariance matrix, -   C_(N) ∈     ^(P×P)—noise covariance matrix, -   {P_(S) ^((l))}_(l∈(L))—probabilities of the speech state history of     length l, where L−1 is the longest history considered, -   {λ_(S) ^((l))}_(l∈(L))—smoothing coefficients for probabilities of     speech state history of length l, -   {P_(N) ^((l))}_(l∈(L))—probabilities of the noise state history of     length l, where L−1 is the longest history considered, -   {λ_(N) ^((l)}) _(l∈(L))—smoothing coefficients for probabilities of     noise state history of length l 

1. A method of enhancing distorted signal having a speech and noise component, with a processing device having memory with stored training information (T), comprising a step of distorted signal frame r acquisition a step of computing (103) orthogonal transform over frame r to obtain (104, 105) distorted signal magnitude spectrum d and distorted signal phase spectrum, a step of removing noise in spectrum domain according to a noise and speech model to obtain clear amplitude spectrum {circumflex over (d)}

of the frame, and a step of synthetizing (117) clear speech signal ŝ_(p) frame with inverse transformation of the clear amplitude spectrum {circumflex over (d)}

from spectrum domain to time domain, characterized in that the training information T comprises dictionaries of compact spectra prototypes of speech s_(i) ₄ and noise n_(i) ₂ , speech gains c_(S_(i₃)) and noise gains c_(N_(i₄)) forming together composite states i=(i₁, i₂, i₃, i₄), and probabilities of speech P_(S) ^((l)) and noise P_(N) ^((l)) state history wherein dictionaries of compact spectra prototypes comprise compact spectra prototypes of a first dimension P₁ and of a second dimension P₂ where second dimension P₂ is higher or equal to the first dimension P₁, and in that the step of removing noise includes computation (107) of a first compact spectrum d ₁ of the first dimension P₁ from magnitude spectrum d, computation (108) of a second compact spectrum d ₂ of the second dimension P₂ from magnitude spectrum d, preselection (109) from training information T a set of composite states matching the first compact spectrum d ₁ evaluation (110) of composite states likelihoods and transition probabilities with a'priori knowledge model using the second compact spectra d ₂ over the set of preselected states, computing (111) a'posteriori probabilities of the composite states using forward and backward probabilities calculated on a base of the likelihoods of the preselected composite states and on a base of the transition probabilities corresponding to at least three frames, estimation (112) of a noise compact spectrum {circumflex over (d)}₂

based on the second compact spectrum d ₂, training information T and a'posteriori probabilities, estimation (113) of a speech compact spectrum {circumflex over (d)}₂

based on the second compact spectrum d ₂, the training information T and the a'posteriori probabilities, recovering (116) a speech magnitude spectrum {circumflex over (d)}

based on the estimated noise compact spectrum, the estimated speech compact spectrum {circumflex over (d)}₂

, the estimated speech compact spectrum {circumflex over (d)}

and distorted signal magnitude spectrum d₂.
 2. The method according to claim 1, characterized in that the first dimension P₁ of the first compact spectrum is greater than 4 and lower than 10 and the second dimension P₂ of the second compact spectrum is greater than 7 and lower than
 30. 3. The method according to claim 1, characterized in that at least one of the estimation (112) of the noise compact spectrum {circumflex over (d)}₂

and estimation (113) of the speech compact spectrum {circumflex over (d)}₂

involves calculation of the expected value over composite states using a'posteriori probabilities.
 4. The method according to claim 1, characterized in that the training information T comprises noise covariance matrix C_(N) and speech covariance matrix C_(S) and the step of evaluation (110) of composite states likelihood includes evaluations of log-likelihood of preselected states according to formula: ${\log \left\lbrack {p\left( {\overset{\_}{d_{2}}\left\lbrack i_{j} \right\rbrack} \right)} \right\rbrack} = {{{- \frac{P}{2}}{\log \left( {2\; \pi} \right)}} - {\frac{1}{2}{\log \left\lbrack {\det \left( {{c_{s_{i_{3}}}^{2}C_{5}} + {c_{n_{i_{4}}}^{2}C_{N}}} \right)} \right\rbrack}} + {{- \frac{1}{2}}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{n_{i_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)^{T}\left( {{c_{s_{i_{3}}}^{2}C_{S}} + {c_{n_{i_{4}}}^{2}C_{N}}} \right)^{- 1}\left( {\overset{\_}{d_{2}} - {c_{s_{i_{3}}}{\overset{\_}{s}}_{2_{i_{1}}}} - {c_{n_{i_{4}}}{\overset{\_}{n}}_{2_{i_{2}}}}} \right)}}$
 5. The method according to claim 4, characterized in that evaluations of log-likelihood of preselected states are executed with approximation: ${\log \left\lbrack {p\left( {\overset{\_}{d_{2}}\left\lbrack i_{j} \right\rbrack} \right)} \right\rbrack} = {{{- \frac{P}{2}}{\log \left( {2\; \pi} \right)}} - {\frac{P_{2}}{2}{\log \left( v_{i_{3},i_{4}} \right)}} - {\frac{1}{2v_{i_{3},i_{4}}}\left( {{\overset{\_}{d_{2}}}_{2}^{2} + {c_{s_{i_{3}}}^{2}{{\overset{\_}{s_{2}}}_{i_{1}}}_{2}^{2}} + {c_{N_{i_{4}}}^{2}{{\overset{\_}{n}}_{2_{i_{2}}}}_{2}^{2}} + {2c_{s_{i_{3}}}c_{n_{i_{4}}}{\langle{{\overset{\_}{s}}_{2_{i_{1}}},{\overset{\_}{n_{2}}}_{i_{2}}}\rangle}} - {3c_{s_{i_{3}}}{\langle{{\overset{\_}{s}}_{2_{i_{1}}},{\overset{\_}{d}}_{2}}\rangle}} - {2c_{s_{i_{4}}}\left. \langle{{\overset{\_}{n}}_{2_{i_{1}}},{\overset{\_}{d}}_{2}} \right)}} \right)}}$ where v_(i)

represents maximal eigenvalue of matrix c_(s_(i₃))²C_(S) + c_(n_(i₄))²C_(N).
 6. The method according to claim 5, characterized in that for evaluation of log-likelihood of different preselected states i following terms are calculated once per frame and stored in cache memory: ${\overset{\_}{d}}_{2}^{2},{\langle{{\overset{\_}{s}}_{2_{i_{4}}},{\overset{\_}{d}}_{2}}\rangle},{{\langle{{\overset{\_}{n}}_{2_{i_{4}}},{\overset{\_}{d}}_{2}}\rangle}.}$
 7. The method according claim 1, characterized in that training information T includes smoothing coefficients and computing transition probabilities in the step (110) is executed with a use of smoothing coefficients λ_(S) ^((l)), λ_(N) ^((l)).
 8. A mobile communication device having a battery (403) and arithmetic unit (401) with connected memory (402), radio transceiver (404) and audio input (406, 407), characterized in that it is adapted to receive audio signal from audio input (406, 407) and execute the method steps as defined in claim 1 on it and then transmit this signal with radio transceiver (404).
 9. A mobile communication device according to claim 8, characterized in that it has the training information T stored in the memory.
 10. A mobile communication device according to claim 8, characterized in that it is adapted to compute training information T.
 11. A mobile communication device according to claim 8, characterized in that it has a separate memory (408) for storing terms: ${\overset{\_}{d}}_{2}^{2},{\langle{{\overset{\_}{s}}_{2_{i_{4}}},{\overset{\_}{d}}_{2}}\rangle},{{\langle{{\overset{\_}{n}}_{2_{i_{4}}},{\overset{\_}{d}}_{2}}\rangle}.}$
 12. A computer program product for a use with a mobile communication device having a processing device and a memory, characterized in that the computer program product comprises a set instructions that after loading to memory cause processing device execute the method steps as defined in claim
 1. 13. The computer program product according to claim 12, characterized in that it comprises training information T including: dictionaries of compact spectra prototypes of speech s_(i) _(l) and noise n_(i) _(p) , speech gains c_(S_(i₃)) and noise gains c_(N_(i₄)) forming together composite states i=(i₁, i₂, i₃, i₄) and probabilities of state history P_(S) ^((l)),P_(N) ^((l)).
 14. The computer program product according to claim 13, characterized in that the training information T comprises noise covariance matrix C_(N) and speech covariance matrix C_(S).
 15. The computer program product according to claim 11, characterized in that the training information T comprises smoothing coefficients λ_(c) ^((l)), λ_(M) ^((l)). 